Put the spawn script template into the "scripttemplates" directory in the NwN folder, then you always have a working spawn script to go back to/copy bits out of.

Of course, don't put this file there!

Jasperre